package jvm;

import java.util.EnumSet;
import java.util.Map;
import java.util.stream.Collectors;

public class EnumTes {


    private Map<String,String> map = EnumSet.allOf(Mapping.class).stream().collect(Collectors.toMap(e->e.code,e->e.value));

    public static void main(String[] args) {
        System.out.println(new EnumTes().map);
    }


    enum Mapping {

        newPlat("1","newPlat"),
        core("0","core");

        public String code;
        public String value;

        Mapping(String code,String value){
            this.code = code;
            this.value = value;
        }
    }
}
